package com.example.doer.reading;

import android.app.Application;

/**
 * Created by 杨轩昂 on 2017/7/11.
 */

public class CollectController {
    Application application;
    private static User user;

    public static void addBookCollect(int BookNo){
        user.getBookCollects()[user.getBookCollects().length]=BookNo;
        //DB handle
        //insert
    }

    public static void deleteBookCollect(int deleteNo){
        user.getBookCollects()[deleteNo]=0;//每个用户收藏的图书有自己的编号，删除时直接删除相应编号对应的图书。
        //DB handle
        //delete
    }
}